package com.woniuxy.project115.kaer.platform.service;

import com.woniuxy.project115.kaer.platform.dto.RolePermissionDto;
import com.woniuxy.project115.kaer.platform.entity.Permission;
import com.woniuxy.project115.kaer.platform.entity.RolePermission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author fyy
 * @since 2025年02月23日
 */
public interface RolePermissionService extends IService<RolePermission> {

    void addRolePermission(Integer roleId, Integer permissionId)throws Exception;

    void removeRolePermission(Integer roleId, Integer permissionId)throws Exception;

    List<Permission> getRolePermission(Integer roleId)throws Exception;

    void saveRolePermissions(RolePermissionDto rolePermissionDto)throws Exception;
}
